package com.service.scheduling.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.service.dao.mapper.MerchantOrderMapper;
import com.service.dao.model.MerchantOrder;
import com.service.scheduling.service.MerchantOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;


@Slf4j
@Service("merchantOrderService")
public class MerchantOrderServiceImpl extends ServiceImpl<MerchantOrderMapper, MerchantOrder> implements MerchantOrderService {

    @Override
    public BigDecimal getOfflineTotalConsumption(List<Integer> memberIdList) {
        return baseMapper.sumTotalMoneyUsdtByMemberIdList(memberIdList);
    }

    @Override
    public BigDecimal getOfflineTotalConcessionUsdt(List<Integer> memberIdList) {
        return baseMapper.sumTotalConcessionUsdtByMemberIdList(memberIdList);
    }
}
